﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NetgameProtocol;
using _2DgameServer.Servers;

namespace _2DgameServer.Controller
{
    class GameController:BaseController
    {
        public GameController()
        {
            requestCode = RequestCode.Game;
        }
        public MainPack ExitGame(Server server,Client client,MainPack pack)
        {
            client.GetRoom.ExitGame(client);
            return null;
        }
        public MainPack UpPos(Server server, Client client, MainPack pack)
        {
            client.GetRoom.Broadcast(client, pack);
            return null;
        }
        public MainPack Fire(Server server, Client client, MainPack pack)
        {
            client.GetRoom.Broadcast(client, pack);
            return null;
        }
    }
}
